<?php
/**
* Display the search results screen
*
* @author       Fabrice Douteaud <clearbudget@douteaud.com>
* @package      snippets
* @access       public
*/

/***********************************************************************

  Copyright (C) 2008  Fabrice douteaud (clearbudget@douteaud.com)

    This file is part of ClearBudget.

    ClearBudget is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    ClearBudget is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with ClearBudget.  If not, see <http://www.gnu.org/licenses/>.


************************************************************************/

?>
<div class="title"><?php echo $keys->pageTitle_Search; ?></div><br/>
<br/>
<div class="tableDiv">
<label><?php echo $keys->text_SearchForString; ?> <b><?php echo $keyWord?></b> (<?php echo $count;?> <?php echo $keys->text_SearchResultCountString; ?>)<br/></label>
<?php
echo '</table>';
if($results != null) {
  $title = $keys->tableTitle_search;
  // include the display
  include('listItems.php');
  }
else {
  echo $keys->text_noResult;
  }
?>
</div>